part of 'page.dart';

class _{{pageName.pascalCase()}}View extends StatelessWidget {
{{#useWloc}}const _{{pageName.pascalCase()}}View({
    required _{{pageName.pascalCase()}}Wloc wloc,
  }) : _wloc = wloc; 
  
  final _{{pageName.pascalCase()}}Wloc _wloc;{{/useWloc}}


  {{^useWloc}}const _{{pageName.pascalCase()}}View();{{/useWloc}}

  Widget _buildContent({
{{#useWloc}}{{#wlocHasState}}required _{{pageName.pascalCase()}}WlocState state,{{/wlocHasState}}{{/useWloc}}
    required BuildContext context,
  }) {
    return Container();
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      height: double.infinity,
      width: double.infinity,
      color: CoreTheme.of(context).backgroundColor,
      child:
      {{#useWloc}}{{#wlocHasState}}WlocBuilder<_{{pageName.pascalCase()}}Wloc, _{{pageName.pascalCase()}}WlocState>(
        wloc: _wloc,
        builder: (context, state) {
          return {{/wlocHasState}}{{/useWloc}}
          _buildContent(
            {{#useWloc}}{{#wlocHasState}}state: state,{{/wlocHasState}}{{/useWloc}}
            context: context,
      {{#useWloc}}{{#wlocHasState}});},{{/wlocHasState}}{{/useWloc}}
      ),
    );
  }
}
